package com.bcfrj.shop.service.impl;

import com.bcfrj.shop.mapper.UserMapper;
import com.bcfrj.shop.pojo.User;
import com.bcfrj.shop.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryUserByAccount(String account) {
        User user = userMapper.queryUserByAccount(account);
        return user;
    }

    @Override
    public Integer insertUser(User user) {
        Integer rows = userMapper.insertUser(user);
        return rows;
    }
}
